/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.iddaa.core.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Temporal;

/**
 * 
 * @author aziz
 */
@SuppressWarnings("serial")
@Entity
public class Tour implements Serializable {

	@Id
	@GeneratedValue
	private Long id;
	@OneToOne
	private Season season;
	@OneToOne
	private Team home;
	@OneToOne
	private Team away;
	private int homeScore;
	private int awayScore;
	@Enumerated(EnumType.STRING)
	private MatchStatus status;
	@Enumerated(EnumType.STRING)
	private TourType type;
	private String groupName;
	@Temporal(javax.persistence.TemporalType.DATE)
	private Date tourDateTime;

	public Team getAway() {
		return away;
	}

	public void setAway(Team away) {
		this.away = away;
	}

	public int getAwayScore() {
		return awayScore;
	}

	public void setAwayScore(int awayScore) {
		this.awayScore = awayScore;
	}

	public String getGroupName() {
		return groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	public Team getHome() {
		return home;
	}

	public void setHome(Team home) {
		this.home = home;
	}

	public int getHomeScore() {
		return homeScore;
	}

	public void setHomeScore(int homeScore) {
		this.homeScore = homeScore;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Season getSeason() {
		return season;
	}

	public void setSeason(Season season) {
		this.season = season;
	}

	public MatchStatus getStatus() {
		return status;
	}

	public void setStatus(MatchStatus status) {
		this.status = status;
	}

	public TourType getType() {
		return type;
	}

	public void setType(TourType type) {
		this.type = type;
	}

	public Date getTourDateTime() {
		return tourDateTime;
	}

	public void setTourDateTime(Date tourDateTime) {
		this.tourDateTime = tourDateTime;
	}

}
